package xyz.jangle.design.observer;

public class AppMain5 {

	public static void main(String[] args) {
		
		ConcreteSubject subject = new ConcreteSubject();
		ConcreteObserver observer1 = new ConcreteObserver(subject);
		ConcreteObserver observer2 = new ConcreteObserver(subject);
		ConcreteObserver observer3 = new ConcreteObserver(subject);
		subject.notifyObserver();
		System.out.println("------------------");
		subject.deleteObserver(observer1);
		subject.notifyObserver();
		System.out.println("------------------");
		subject.deleteObserver(observer2);
		subject.deleteObserver(observer3);
		subject.notifyObserver();

	}

}
